using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Extend Diagram</para>
    /// <para>Extend a Network Diagram</para>
    /// <para>扩展网络逻辑示意图</para>
    /// </summary>    
    [DisplayName("Extend Diagram")]
    public class ExtendDiagram : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ExtendDiagram()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_network_diagram_layer">
        /// <para>Input Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public ExtendDiagram(object _in_network_diagram_layer)
        {
            this._in_network_diagram_layer = _in_network_diagram_layer;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Extend Diagram";

        public override string CallName => "un.ExtendDiagram";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_network_diagram_layer, _ignore_traversability.GetGPValue(), _out_network_diagram_layer, _extension_type.GetGPValue()];

        /// <summary>
        /// <para>Input Network Diagram Layer</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network Diagram Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_network_diagram_layer { get; set; }


        /// <summary>
        /// <para>Ignore traversability</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Ignore traversability")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _ignore_traversability_value _ignore_traversability { get; set; } = _ignore_traversability_value._true;

        public enum _ignore_traversability_value
        {
            /// <summary>
            /// <para>IGNORE_TRAVERSABILITY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("IGNORE_TRAVERSABILITY")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>HONOR_TRAVERSABILITY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("HONOR_TRAVERSABILITY")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Output Network Diagram</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network Diagram")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_network_diagram_layer { get; set; }


        /// <summary>
        /// <para>Extension Type</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Extension Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _extension_type_value _extension_type { get; set; } = _extension_type_value._BY_CONNECTIVITY;

        public enum _extension_type_value
        {
            /// <summary>
            /// <para>BY_CONNECTIVITY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("BY_CONNECTIVITY")]
            [GPEnumValue("BY_CONNECTIVITY")]
            _BY_CONNECTIVITY,

            /// <summary>
            /// <para>BY_TRAVERSABILITY</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("BY_TRAVERSABILITY")]
            [GPEnumValue("BY_TRAVERSABILITY")]
            _BY_TRAVERSABILITY,

            /// <summary>
            /// <para>BY_ATTACHMENT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("BY_ATTACHMENT")]
            [GPEnumValue("BY_ATTACHMENT")]
            _BY_ATTACHMENT,

            /// <summary>
            /// <para>BY_CONTAINMENT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("BY_CONTAINMENT")]
            [GPEnumValue("BY_CONTAINMENT")]
            _BY_CONTAINMENT,

        }

        public ExtendDiagram SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}